package com.lnsoft.dqfs;

import com.lnsoft.dqfs.server.DqfsServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Order(value = 3)
public class NettyServerRunner implements CommandLineRunner {

    @Autowired
    private DqfsServer dqfsServer;

    @Override
    public void run(String... args) throws Exception {
        log.debug("NettyServerRunner执行----------------");
        dqfsServer.start();
        log.debug("NettyServerRunner执行完毕----------------");
    }
}
